import java.util.ArrayList;

import DB.*;
import Gui.GUI;
import Gui.Terminal;
import Model.*;


public class MainClass {

	/**
	 * @param args
	 */
	public static void main(String[] args) 
	{
		//create window
		GUI window = new GUI();
		window.setVisible(true);
		
		/* TEST 
		DBProduct dbp = new DBProduct();
		
		Product pro = dbp.getProduct("20");
		
		if(pro != null) {
			Terminal.say("Success!: Product");
		}
		
		DBInvoice idp = new DBInvoice();
		
		Invoice in = idp.getInvoice("11");
		
		if(in != null)
		{
			Terminal.say("Succes!: Invoice");
			
			for(Invoice i : idp.getAllInvoices()) {
				Terminal.say(i.getInvoiceNo());
			}
			
			Terminal.say(idp.getHighestNo());
		}
		
		
		
		DBCustomer dbc = new DBCustomer();
		
		Customer c = dbc.getCustomer("1337");
		
		if(c != null)
		{
			Terminal.say("Succes!: Customer");
			Terminal.say(dbc.getHighestID());
		}
		
		
		DBSalesorder dbs = new DBSalesorder();
		
		Salesorder s = dbs.getSalesorder("15");
		
		if(s != null)
		{
			Terminal.say("Succes!: Salesorder");
		}
		
		
		DBPartorder dbpart = new DBPartorder();
		
		Partorder part = dbpart.getPartorder("30");
		
		if(part != null)
		{
			Terminal.say("Succes!: Partorder");
		}
		
		
		DBEquipment dbe = new DBEquipment();
		
		Equipment e = dbe.getEquipment("30");
		
		if(e != null)
		{
			
			Terminal.say("Succes!: Equipment");
			
		}
		
		DBGunReplicas dbg = new DBGunReplicas();
		
		GunReplicas g = dbg.getGunsReplicas("40");
		
		if(g != null)
		{
			Terminal.say("Succes!: GunsReplicas");
		}
		
		DBClothing dbcloth = new DBClothing();
		
		Clothing cloth = dbcloth.getClothing("50");
		
		if(c != null)
		{
			Terminal.say("Succes!: Clothing");
		}
		
		DBSupplier dbsup = new DBSupplier();
		
		Supplier sup = dbsup.getSupplier("1");
		
		if(sup != null)
		{
			Terminal.say("Succes!: Supplier");
			Terminal.say(dbsup.getHighestNo());
		}
		
		*/
		
	}

}

